package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

@Data
@Builder
@TableName("T_USER")
public class User implements Serializable {

    @Tolerate
    public User() {
    }

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 姓名
     */
//    @TableField(value = "NAME",updateStrategy = FieldStrategy.NOT_NULL )
    @TableField("NAME")
    private String name;

    /**
     * 年龄
     */
    @TableField("AGE")
    private String age;
}